﻿using UnityEngine;

namespace zframe.hot
{
    public class LoaderManager
    {
        
        public static GameObject LoadResUIPrefab(string path)
        {
            GameObject prefab = Resources.Load<GameObject>(path); //加载不需要些后缀
            Debug.Log($"LoaderManager LoadResUIPrefab  加载预设 {path}");  
            return prefab;
        }

        public static GameObject LoadUIPrefabObj(string path,Transform parent)
        {
            GameObject prefab = LoadResUIPrefab(path);
            Debug.Log($"LoaderManager LoadUIPrefabObj  加载预设 并实例化对象 ");
            return GameObject.Instantiate(prefab, parent);
        }
        
        public static void Say()
        {
            int i = 0;
        }

    }
}
